package com.linjiahao.messagePush.config;

import org.springframework.amqp.core.Queue;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @ClassName MessageDirectRabbitConfig
 * @Description: TODO
 * @Author linjiahao
 * @Date 2023/1/18
 **/
@Configuration
public class MessageDirectRabbitConfig {

    @Value("${spring.rabbitmq.message-send.queue}")
    private String messageQueueName;

    @Bean
    public Queue createMessageQueue(){
        return new Queue(messageQueueName);
    }




}
